<?php
    include_once '../Datos/GestionTaller.php';
    include_once '../Datos/FechasNoticia.php';
    
    $gestion = new GestionTaller();
    $listaFechas = $gestion->getMesesConTalleres();
    
    echo "<select id='comboMes' onchange='BuscarTalleresPorMes();'>";
    echo '<option value="0">Proximos Talleres</option>';
    foreach ($listaFechas as $value) {        
        echo '<option value="'.$value->getYear().'-'.$value->getMes().'">'.$value->getMes().' '.$value->getYear().'</option>';
    }
    echo "</select>";
?>